package com.example.xpvideo.entity;

import java.time.LocalDateTime;
import java.io.Serializable;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonInclude;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * 本地生活商品和商铺对应关系表(LocalGoodsRelationship)实体类
 *
 * @author 
 * @since 2021-09-17 16:22:59
 */
@ApiModel("本地生活商品和商铺对应关系表")
@JsonInclude(JsonInclude.Include.NON_NULL)
public class LocalGoodsRelationship implements Serializable {
    private static final long serialVersionUID = -68243733069050742L;
        /**
    *主键
    * ${column.comment}
    * isnull 1
    */
    @ApiModelProperty(value="$column.comment",position=1)
    private Integer id;

    /**
    * 店铺id
    * isnull 0
    */        @ApiModelProperty(value="店铺id",position=2)
    private Integer shopId;
    /**
    * 商品id
    * isnull 0
    */        @ApiModelProperty(value="商品id",position=3)
    private Integer commodityId;
    /**
    * 在售开始时间
    * isnull 0
    */        @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
        @ApiModelProperty(value="在售开始时间",position=4)
    private LocalDateTime saleStartTime;
    /**
    * 在售结束时间
    * isnull 0
    */        @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
        @ApiModelProperty(value="在售结束时间",position=5)
    private LocalDateTime saleEndTime;
    /**
    * 创建时间
    * isnull 0
    */        @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
        @ApiModelProperty(value="创建时间",position=6)
    private LocalDateTime createTime;
    /**
    * 更新时间
    * isnull 0
    */        @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
        @ApiModelProperty(value="更新时间",position=7)
    private LocalDateTime updateTime;
    /**
    * 是否下架：0是；1否
    * isnull 0
    */        @ApiModelProperty(value="是否下架：0是；1否",position=8)
    private Integer isDel;
    /**
    * 状态：0正常；1审核中；2审核拒绝
    * isnull 0
    */        @ApiModelProperty(value="状态：0正常；1审核中；2审核拒绝",position=9)
    private Integer status;
    /**
    * 库存
    * isnull 0
    */        @ApiModelProperty(value="库存",position=10)
    private Integer stock;
        
    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }
        
    public Integer getShopId() {
        return shopId;
    }

    public void setShopId(Integer shopId) {
        this.shopId = shopId;
    }
        
    public Integer getCommodityId() {
        return commodityId;
    }

    public void setCommodityId(Integer commodityId) {
        this.commodityId = commodityId;
    }
        
    public LocalDateTime getSaleStartTime() {
        return saleStartTime;
    }

    public void setSaleStartTime(LocalDateTime saleStartTime) {
        this.saleStartTime = saleStartTime;
    }
        
    public LocalDateTime getSaleEndTime() {
        return saleEndTime;
    }

    public void setSaleEndTime(LocalDateTime saleEndTime) {
        this.saleEndTime = saleEndTime;
    }
        
    public LocalDateTime getCreateTime() {
        return createTime;
    }

    public void setCreateTime(LocalDateTime createTime) {
        this.createTime = createTime;
    }
        
    public LocalDateTime getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(LocalDateTime updateTime) {
        this.updateTime = updateTime;
    }
        
    public Integer getIsDel() {
        return isDel;
    }

    public void setIsDel(Integer isDel) {
        this.isDel = isDel;
    }
        
    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }
        
    public Integer getStock() {
        return stock;
    }

    public void setStock(Integer stock) {
        this.stock = stock;
    }

        @Override
    public String toString() {
        return "{" +
                    " \"id\":" + id +
                                  " ,\"shopId\":" + shopId +
                            " ,\"commodityId\":" + commodityId +
                            " ,\"saleStartTime\":" + saleStartTime +
                            " ,\"saleEndTime\":" + saleEndTime +
                            " ,\"createTime\":" + createTime +
                            " ,\"updateTime\":" + updateTime +
                            " ,\"isDel\":" + isDel +
                            " ,\"status\":" + status +
                            " ,\"stock\":" + stock +
                  '}';
    }


}
